#ifndef TLINEEDIT_H
#define TLINEEDIT_H

#include <QLineEdit>

class TLineEdit : public QLineEdit
{
    Q_OBJECT
public:
    explicit TLineEdit(QWidget *parent = 0);
    
    void setNullStr(const QString &text);

signals:
    
public slots:

protected:
    virtual void focusInEvent(QFocusEvent * event);
    virtual void focusOutEvent(QFocusEvent * event);
    
private:
    void sHandleNullStr();

private:
    QString _nullStr;
    bool _isNull;
};

#endif // TLINEEDIT_H
